home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Animation How-To
/
Animation How-to CD.iso
/
PLY
/
CHAPTER3
/
POP
/
POP.PI
< prev
Wrap
Text File
|
1994-01-01
|
1KB
|
68 lines
// POP.PI
// Cut Away Blob Shape
include "\ply\colors.inc"
start_frame 0
end_frame 179
total_frames 180
outfile "pop"
define pi 3.14159
define rad pi/180
background SkyBlue
light <1.0,1.0,1.0>,<10,12,10>
define weird_shape
object {
blob 6.6:
7, 3.0,< 0, 0, 0 >,
3, 1.0,< 1, 1, 1 >,
3, 1.0,< -1, 1, 1 >,
3, 1.0,< 1, -1, 1 >,
3, 1.0,< -1, -1, 1 >,
3, 1.0,< 1, 1, -1 >,
3, 1.0,< -1, 1, -1 >,
3, 1.0,< 1, -1, -1 >,
3, 1.0,< -1, -1, -1 >,
3, 1.0,< 0, 1, 1 >,
3, 1.0,< 0, 1, -1 >,
3, 1.0,< 0, -1, 1 >,
3, 1.0,< 0, -1, -1 >,
3, 1.0,< 1, 0, 1 >,
3, 1.0,< 1, 0, -1 >,
3, 1.0,< -1, 0, 1 >,
3, 1.0,< -1, 0, -1 >,
3, 1.0,< 1, 1, 0 >,
3, 1.0,< 1, -1, 0 >,
3, 1.0,< -1, 1, 0 >,
3, 1.0,< -1, -1, 0 >
root_solver Sturm
u_steps 20
v_steps 20
reflective_coral
}
define ang 360*frame/total_frames
// range needs to be 0.52 to 1.66
define breath 0.57*cos(rad*ang)+1.09
object {
weird_shape
& object { sphere <0, 0, 0>, breath } // clip it by a breathing sphere
rotate <0, ang,0>
}
viewpoint {
from <1.3*breath,1.8*breath,0.0>
at <0.0,0.0,0.0>
up <0,1,0>
angle 50
resolution 320,200
aspect 1.433
}